<script type="text/javascript">
	$(document).ready(function () {
<?php
  global $pel_tabs;
  if (isset($pel_tabs) && $pel_tabs == true) {
  ?>
    $('div#example').tabs();
  <?php
  }
?>
  });
</script>